package com.xy.api.service.mainData;

import com.xy.api.model.dto.mainData.ProductInstanceDTO;
import com.xy.api.model.request.mainData.ProductRequest;
import com.xy.api.model.request.mainData.SubmitProductInstanceRequest;
import com.xy.api.model.response.Rows;

import java.util.List;

public interface IProductInstanceService {

    /**
     * 查询指定产品的实例
     *
     * @param request
     * @return
     */
    Rows<ProductInstanceDTO> queryProductInstanceList(ProductRequest request);

    /**
     * 保存产品变体信息
     *
     * @param request
     */
    void saveProductInstanceList(SubmitProductInstanceRequest request);

    /**
     * 删除
     *
     * @param id
     */
    void deleteProductInstance(Long id);

    /**
     * 根据ID查询产品细则
     *
     * @param ids
     * @return
     */
    List<ProductInstanceDTO> queryProductInstanceByIds(List<Long> ids);

    /**
     * 根据产品ID查细则
     *
     * @param productIds 产品ID
     * @return
     */
    List<ProductInstanceDTO> queryProductInstanceByProductIds(List<Long> productIds);
}
